package jmine.tec.script.persistent.dispatcher;

import jmine.tec.script.ScriptDispatcher;

/**
 * Bean utilizado para armazenar os dados para registro de um dispatcher no dispatcher composto.
 * 
 * @author lundberg
 */
public final class CompositeDispatcherRule {

    private String purpose;

    private ScriptDispatcher dispatcher;

    /**
     * Construtor
     */
    public CompositeDispatcherRule() {
        // OK
    }

    /**
     * Construtor
     * 
     * @param purpose purpose
     * @param dispatcher dispatcher
     */
    public CompositeDispatcherRule(String purpose, ScriptDispatcher dispatcher) {
        super();
        this.purpose = purpose;
        this.dispatcher = dispatcher;
    }

    /**
     * @return the purpose
     */
    public String getPurpose() {
        return this.purpose;
    }

    /**
     * @return the dispatcher
     */
    public ScriptDispatcher getDispatcher() {
        return this.dispatcher;
    }

    /**
     * @param purpose the purpose to set
     */
    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    /**
     * @param dispatcher the dispatcher to set
     */
    public void setDispatcher(ScriptDispatcher dispatcher) {
        this.dispatcher = dispatcher;
    }
}
